package com.cn.jinl.dao;

import com.cn.jinl.domain.TerminalAccess;
import com.cn.jinl.domain.TerminalAccessExample;
import java.util.List;

import com.cn.jinl.utils.QueryForm;
import org.apache.ibatis.annotations.Param;

public interface TerminalAccessMapper {
    int countByExample(TerminalAccessExample example);

    int deleteByExample(TerminalAccessExample example);

    int deleteByPrimaryKey(String id);

    int insert(TerminalAccess record);

    int insertSelective(TerminalAccess record);

    List<TerminalAccess> selectByExample(TerminalAccessExample example);

    TerminalAccess selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") TerminalAccess record, @Param("example") TerminalAccessExample example);

    int updateByExample(@Param("record") TerminalAccess record, @Param("example") TerminalAccessExample example);

    int updateByPrimaryKeySelective(TerminalAccess record);

    int updateByPrimaryKey(TerminalAccess record);

    int batchInsertTerminal(@Param("terminals") List<TerminalAccess> terminalAccesses);

    List<TerminalAccess> selectTerminalList(QueryForm queryForm);

    int countTotal();

    int countAccessible();

    List<TerminalAccess> getMacList(String macAddress);
}